package com.ljh.jxc.modules.suo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ljh.jxc.common.utils.PageUtils;
import com.ljh.jxc.common.utils.Query;

import com.ljh.jxc.modules.suo.mapper.QuotationMapper;
import com.ljh.jxc.modules.suo.entity.Quotation;
import com.ljh.jxc.service.QuotationService;


@Service("quotationService")
public class QuotationServiceImpl extends ServiceImpl<QuotationMapper, Quotation> implements QuotationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Quotation> page = this.page(
                new Query<Quotation>().getPage(params),
                new QueryWrapper<Quotation>()
        );

        return new PageUtils(page);
    }

}